package com.tulingxueyuan.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: TODO
 * @Author li
 * @Date 2025/4/22 10:25
 */
@Configuration
public class RibbonRandomRuleConfig {

    /**
     * 方法名也要叫iRule
     */
    @Bean
    public IRule iRule() {
        return new RandomRule();
    }

}
